.title {
  font-weight: bold;
  font-size: 20px;
}

.subtitle {
  font-weight: bold;
  margin: 10px 0;
  font-size: 15px;
}
.card {
  padding: 20px;
  background: #fff;
  border-radius: 20px;
}
.content {
  background: rgb(238 240 244);
  display: flex;
  padding-top: 56px;
  height: 100vh;
  box-sizing: border-box;
  max-width: 1920px;
  margin: 0 auto;

  .arrow {
    svg {
      width: 20px;
    }
  }

  .leftPart {
    flex: 1;

    position: relative;
    display: flex;
    height: 100%;
    box-sizing: border-box;
    min-width: 600px;
  }

  .siderbar {
    border-radius: 20px;
    background: #fff;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: rgb(0 0 0 / 5%) 2px 1px 7px;

    .menuItem {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 90px;
      width: 100%;
      padding: 6px 14px;
      border-radius: 20px;
      background: #fff;
      flex-direction: column;
      box-sizing: border-box;
      margin-bottom: 20px;
      cursor: pointer;
      white-space: nowrap;

      svg {
        width: 35px;
      }

      .txt {
        margin-top: 10px;
        font-size: 15px;
      }

      &.selected {
        background: rgb(249 250 251);

        .txt {
          background-image: linear-gradient(
            90deg,
            rgb(236 0 140),
            rgb(252 103 103)
          );
          background-clip: text;
          -webkit-text-fill-color: transparent;
        }
      }

      &.preview {
        display: none;
      }
    }
  }

  .main {
    height: 100%;
    margin-left: 10px;
    overflow: hidden;
    flex: 1;
    .head {
      display: flex;
    }
  }

  .previewWraper {
    overflow-y: auto;
    height: calc(100vh - 56px);
    padding: 10px 0;
    box-sizing: border-box;
    width: 50vw;
    position: relative;
  }

  @media screen and (width <= 800px) {
    padding-top: 0px;
    height: auto;
    & {
      display: block;
    }

    .leftPart {
      min-width: auto;
      display: block;
    }

    .card {
      padding: 20px;
    }

    .siderbar {
      position: fixed;
      inset: auto 5px 10px auto;
      z-index: 1000;
      bottom: 5px;
      width: 96%;
      top: auto;
      left: 2%;
      display: flex;
      justify-content: space-between;
      padding: 10px;
      padding-bottom: 15px;
      box-shadow: rgb(179 179 179 / 50%) 0 0 15px;

      .logo {
        display: none !important;
      }

      .menuItem {
        margin-bottom: 0;
        padding: 0;
        flex: 1;

        height: 50px;
        border-radius: 10px;
      }

      .txt {
        font-size: 12px !important;
        margin-top: 4px !important;
      }

      .preview {
        display: flex !important;
      }

      svg {
        width: 24px !important;
      }
    }

    .main {
      margin-left: 0;
      height: auto;
      overflow: initial;
    }

    .previewWraper {
      position: absolute;
      left: -10000px;
      height: 0;
      overflow: hidden;
    }

    .showPreview {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      justify-content: center;
      background: rgb(0 0 0 / 50%);
      z-index: 1000;
      height: 100%;
      overflow: auto;
    }
  }
  @media screen and (min-width: 1920px) {
    .previewWraper {
      width: 40vw;
    }
  }
  .layoutTypes {
    width: 50px;
    height: 50px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 10px;
    display: inline-block;
    cursor: pointer;
    position: relative;

    &::after {
      display: inline-block;
      position: absolute;
      content: "";
      background: rgb(187 187 187);
    }

    &.active {
      border: 1px solid rgb(88 56 231);
      background-color: #9fa9f94d;

      &::after {
        background: rgb(88 56 231);
      }
    }

    &.top {
      &::after {
        width: 100%;
        height: 50%;
        top: 0;
        left: 0;
      }
    }

    &.left {
      &::after {
        width: 50%;
        height: 100%;
        top: 0;
        left: 0;
      }
    }

    &.right {
      &::after {
        width: 50%;
        height: 100%;
        top: 0;
        right: 0;
      }
    }
  }

  .columnWidth {
    display: flex;
    gap: 10px;

    .column {
      flex: 1;
      border: 1px solid #ccc;
      border-radius: 10px;
      padding: 10px;
      text-align: center;
      cursor: pointer;
      user-select: none;
    }
  }

  .toBeAdd {
    margin-top: 20px;
    padding: 0 10px;

    .toBeAddItem {
      cursor: pointer;
      padding: 13px;
      border: 1px dashed #ccc;
      margin-bottom: 20px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .plus {
        border-radius: 50px;
        background: rgb(32 14 50);
        padding: 4px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        cursor: pointer;
      }
    }
  }
}
